import request from '@/utils/request'

// 查询彩票信息列表
export function listLotTicket(query) {
  return request({
    url: '/ticket/lotTicket/list',
    method: 'get',
    params: query
  })
}

// 查询彩票信息详细
export function getLotTicket(id) {
  return request({
    url: '/ticket/lotTicket/' + id,
    method: 'get'
  })
}

// 新增彩票信息
export function addLotTicket(data) {
  return request({
    url: '/ticket/lotTicket',
    method: 'post',
    data: data
  })
}

// 修改彩票信息
export function updateLotTicket(data) {
  return request({
    url: '/ticket/lotTicket',
    method: 'put',
    data: data
  })
}

// 删除彩票信息
export function delLotTicket(id) {
  return request({
    url: '/ticket/lotTicket/' + id,
    method: 'delete'
  })
}
